<?php
/**
 * Constantes applicatives
 * 
 */
global $EXCEPTION_MSGS;
/**
 * 
 * @var string
 */
const JOB_AUTO_DOWNLOAD ="AutoDLJob.php";

/**
 * Internal Applicatives Constants
 */
const JOB_INTERNAL_EXT_JOBFILE = ".job";
const JOB_INTERNAL_SUFFIXE_JOBCLASSNAME = "Job";
const JOB_INTERNAL_DIR_JOBFILE = "jobs/";

/**
 * External Constants
 */
const JOB_EXT_ID_PARAMNAME = "JOB_ID";
const JOB_EXT_TYPE_PARAMNAME = "JOB_TYPE";

/**
 * Exceptions Types
 */
// For JOB
const EXCEPTION_TYPE_JOB_FILE_NOTFOUND = "EX-JOB_NOTFOUND";
const EXCEPTION_TYPE_JOB_GENERIC = "EX-JOB_GENERIC";
const EXCEPTION_TYPE_JOB_PARAM_NOTFOUND = "EX-JOB_PARAM-NOTFOUND";
// FOR JOB TOOL
const EXCEPTION_JTOOL_GENERIC = "EX-JTOOL_GENERIC";
// FOR LOG
const EXCEPTION_TYPE_LOG_INTERNAL = "EX-LOG_INTERNAL";
const EXCEPTION_TYPE_LOG_STREAM   = "EX-LOG_STREAM";

/**
 * Exceptions Msg
 */
$EXCEPTION_MSGS[EXCEPTION_TYPE_JOB_FILE_NOTFOUND] = "Job called '%s' not found.";
$EXCEPTION_MSGS[EXCEPTION_TYPE_JOB_PARAM_NOTFOUND] = "Parameter '%s' value for Job called '%s' not found.";

/**
 * Logs Structure
 */
const LOG_INFO_PATTERN = "[%s]-{LOG}*INFO- %s - %s";
const LOG_WARN_PATTERN = "[%s]-{LOG}*WARN- %s - %s";
const LOG_ERR_PATTERN = "[%s]-{LOG}*ERR - %s - %s";



